package com.huibei.wateradmin.merchant.feignClient;

import com.huibei.wateradmin.common.message.PageDto;
import com.huibei.wateradmin.common.message.ReqAdminListMsg;
import com.huibei.wateradmin.merchant.message.*;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;


/**
 * Created by wanglinlin on 2017/10/30.
 */
//@FeignClient(name = "merchantFeignClient", url = "http://123.57.8.133:9931/huibeiwater")
@FeignClient(name = "merchantFeignClient", url = "http://127.0.0.1:9931/huibeiwater")
public interface MerchantFeignClient {
    @RequestMapping(value = "/admin/merchant/shopList" , method = RequestMethod.POST)
    PageDto<AdminShopBaseInfoModel> getMerchantList(ReqAdminListMsg msg);

    @RequestMapping(value = "/admin/merchant/createShop" , method = RequestMethod.POST)
    void createShop(ReqCreateShopMsg msg);

    @RequestMapping(value = "/admin/product/productTypeList" , method = RequestMethod.POST)
    List<AdminProductTypeModel> getProductTypeList(Long brandId);

    @RequestMapping(value = "/admin/product/createProductType" ,method = RequestMethod.POST)
    void createProductType(ReqCreateProductTypeMsg msg);

    @RequestMapping(value = "/admin/merchant/storeProductList" ,method = RequestMethod.POST)
    List<AdminStoreProductModel> getStoreProductList(ReqShopProductListMsg msg);

    @RequestMapping(value = "/admin/merchant/createStoreProduct" ,method = RequestMethod.POST)
    void createStoreProduct(ReqCreateStoreProductMsg msg);

    @RequestMapping(value = "/admin/merchant/shopProductList",method = RequestMethod.POST)
    List<AdminProductModel> getShopProductList(ReqShopProductListMsg msg);

    @RequestMapping(value = "/admin/merchant/createShopProduct",method = RequestMethod.POST)
    void createShopProduct(ReqCreateShopProductMsg msg);

    @RequestMapping(value = "/admin/product/brandList",method = RequestMethod.GET)
    List<Brand> getBrands();

    @RequestMapping(value = "/admin/product/productCategory",method = RequestMethod.GET)
    List<ProductCategory> getCategories();
}
